package com.hospital.api;

import com.hospital.api.factory.RemoteEndesctryptionFactory;
import com.hospital.common.core.constants.ServiceNameConstants;
import com.hospital.common.core.module.entity.NFC.NFCResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(contextId = "remoteEndesctryptionService",value = ServiceNameConstants.ENDESCTRYPTION_SERVICE,fallbackFactory = RemoteEndesctryptionFactory.class)
public interface RemoteEndesctryptionService {
    @RequestMapping("/desctrytion/insurance")
    public String getorgone(@RequestBody NFCResponse requestVal);

    @RequestMapping("/enctrytion/insurance")
    public String getEnc(@RequestBody NFCResponse requestVal);

    @RequestMapping("/encdesc/insurance")
    public String getEncDesc(@RequestBody NFCResponse requestVal);
}
